<div class="doc-item" id="doc-1321"><h2 class="doc-item-name">set-repl-prompt<span class="namespace">(clojure.contrib.repl-ln)</span></h2><ul class="var-arglists"><li>(<span class="var-name">set-repl-prompt</span>  )</li><li>(<span class="var-name">set-repl-prompt</span>  prompt-fmt)</li></ul><div class="var-docstring"><p>Sets the repl prompt. Include the following codes in the prompt to make
  the corresponding dynamic values part of it:</p><p>%S - repl serial number
    %T - thread id
    %D - nesting depth in this thread
    %L - input line number
    %N - namespace name</p><p>With no arguments, resets the repl pompt to its default: &quot;%S:%L %N=&gt; &quot;</p></div><div class="var-source"><pre>; clojure/contrib/repl_ln.clj:180
(defn set-repl-prompt
  ([]
     (set-repl-prompt (+info-defaults+ :prompt-fmt)))
  ([prompt-fmt]
     (assoc! *info* :prompt-fmt prompt-fmt)
     (loop [[[code fmt] &amp; more] (seq +prompt-formats+)
            prompt-fmt prompt-fmt]
       (if code
         (recur more (.replace prompt-fmt code fmt))
         (assoc! *private* :prompt-fmt prompt-fmt)))
     nil))</pre></div><div class="license"><p>Copyright (c) Rich Hickey. All rights reserved.</p><p>The use and distribution terms for this software are covered by the <a href="http://opensource.org/licenses/eclipse-1.0.php">Eclipse Public License 1.0</a>, which can be found in the file
          epl-v10.html at the root of this distribution. By using this software
          in any fashion, you are agreeing to be bound by the terms of this
          license. You must not remove this notice, or any other, from this
          software.</p></div></div>